package com.nf.mvc.argument;

import com.nf.mvc.support.Constants;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <a href="https://www.jianshu.com/p/f24e49efec19">注解属性值必须是一个编译时常量</a>，
 * <a href="https://www.baeldung.com/java-annotation-attribute-value-restrictions">注解属性值的限制</a>
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface RequestParam {
    String name() default Constants.DEFAULT_NONE;

    String defaultValue() default Constants.DEFAULT_NONE;
}
